<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/1/18 0018
 * Time: 16:29
 */

$content = date("Y-m-d H:i:s").PHP_EOL;
swoole_async_writefile(__DIR__.'/1.log', $content, function($filename){
    //todo
    echo "success:{$filename}".PHP_EOL;
}, FILE_APPEND);

echo "start".PHP_EOL;










